import request from '@/utils/request';
export async function queryChannel() {
  return request('/api/v1/device/channel');
}
export async function queryChannelRecord(deviceId,channelId,day) {
  const startTime = `${day} 00:00:00`;
  const endTime = `${day} 23:59:59`;
  return request(`/api/v1/device/${deviceId}/${channelId}/record?startTime=${startTime}&endTime=${endTime}`);
}
export async function liveStart(deviceId,channelId) {
  return request(`/api/v1/device/live/start/${deviceId}/${channelId}`);
}
export async function livend(deviceId,channelId) {
  return request(`/api/v1/device/live/end/${deviceId}/${channelId}`);
}
export async function playbackStart(deviceId,channelId,startTime,endTime) {
  return request(`/api/v1/device/live/start/${deviceId}/${channelId}?startTime=${startTime}&endTime=${endTime}`);
}
export async function playbackEnd(deviceId,channelId) {
  return request(`/api/v1/device/live/end/${deviceId}/${channelId}`);
}
